﻿@{
    ViewBag.Title = "卷库网-分享试卷的乐趣！";
}

<div style="width: 20%; height: 100%; float: left; color:transparent">.</div>
<div style="position: fixed; text-align: center; width: 15%; background-color: #f7f7f7; height: auto; margin-top: 10px; ">
    <div style="background-color: #32cd32; height: 7px; width: 100%; ">.</div>
    <ul class="nav nav-pills">
        <li>@Html.ActionLink("热门试卷", "Index", "Home", null, new { style = "font-family:微软雅黑;" })</li>
        <li>@Html.ActionLink("热门教师", "HotTeacher", "Home", null, new { style = "font-family:微软雅黑;" })</li>
        <li>@Html.ActionLink("热门试题", "HotQuestion", "Home", null, new { style = "font-family:微软雅黑;" })</li>
    </ul>
    <div style="background-color: #32cd32; height: 7px; width: 100%; ">.</div>
</div>
<div style="float: left; width: 75%; height: auto; padding-left: 4%">
    @foreach (var hotteacher in ViewBag.hotTeachers)
    {
        string teacherName = @hotteacher.teacher.name;
        int teacherID = @hotteacher.teacher.ID;
        <div class="homepage-show" style="background-color: #f7f7f7; padding:0px 0px 10px 0px; margin-bottom: 15px; ">
            <div style="background-color: #b9b9b9; margin-top: 0px; padding-top: 5px; padding-bottom: 5px; padding-left: 30px; margin-bottom: 10px;">
                @Ajax.ActionLink("关注", "collectPaper", "Home", new {  }, new AjaxOptions
                {
                    HttpMethod = "Post",
                    OnSuccess = "collectQuestionAlert()"
                }, new { @class = "collect", style = "text-decoration: none; float: right; margin-top: 0px; font-family: 微软雅黑; " })
                <h4>
                    @Html.ActionLink(@teacherName, "Paper", "ViewPaper", new { id = @teacherID }, new { style = "text-decoration:none;cursor:pointer;font-family:微软雅黑;color:#000000;" })
                </h4>
            </div>
            @foreach (var Paper in hotteacher.Name_doneCount)
            {
                string paperName = @Paper.paper.name;
                int paperID=@Paper.paper.ID;
                int doneCount = @Paper.doneCount;
                <p class="col-md-9">@Html.ActionLink(@paperName, "Paper", "ViewPaper", new { id = @paperID }, new { style = "margin-left:15px; color: #a4a4a4; font-family: 微软雅黑; font-size: 14px;text-decoration:none;" })</p>
                <p class="col-md-offset-3" style="color: #a4a4a4;">被做过<span style="color: red;">@doneCount</span>次</p>
            }
        </div>
    }
</div>